package com.yy.wga.admin.service.controller;


import com.yy.wga.mp.common.aop.NotLogin;
import com.yy.wga.mp.module.admin.response.AdminMenuInfoResponse;
import com.yy.wga.mp.module.admin.service.AdminMenuService;

import javax.annotation.Resource;
import java.util.List;

/**
 * 运营后台/菜单信息
 *
 * @author guochao
 * @since 2024-11-06 22:56:23
 */
@RestController
@RequestMapping("admin/menu")
public class AdminMenuController {
    /**
     * 服务对象
     */
    @Resource
    private AdminMenuService adminMenuService;

    @NotLogin
    @PostMapping(value = "/list")
    public Result<List<AdminMenuInfoResponse>> list() {
        List<AdminMenuInfoResponse> responseList = adminMenuService.listMenus();
        return Result.success(responseList);
    }
}
